implement post requests and fixes for sessions