minor test imrpovements
added log func for printing promise chain
get sessionID from response data