to reset the API: 1. connect to server with putty (username "ubuntu") 2. use command: "screen -ls" This shows a list of open screens (aka linux tabs) 3. If you see a tab called API and it says (detached) then go to step 4. otherwise perform the following steps: a. if the API screen says (attached) then run the command: "screen -D" The capital "D" detaches from all outside the screen. b. if there is no screen named "api" then use the command: "screen -S api" This will create a screen named api and now go to step 5. 4. connect to the api screen with this command: "screen -r api" 5. you should now be in the correct screen a. if the script (CDVapi.py) is running then use the command "ctrl+c" This will stop the script b. once the script (CDVapi.py) is stopped run the following 2 commands to start it again: i. "export FLASK_APP=CDVapi.py" ii. "flask run --host=0.0.0.0" 6. detach from the screen with this: "ctrl+a" and "d" 7. you have now restarted the script and are detached from the screen... YAYY!!!!