removed sessions check and added console log params, world worst debugging