bug fix for non-callback functions that handled the response