added all of the sorcery code for sessions and users