added response handling
moved function elsewhere
moved functions from helper & some minor changes
removed helper import