cleanup dependencies, un/serialize session data