updated for stability

Updated how the status information is displayed and logged.
updated code flow

The getresponse function now flows better