updated primer to look for a session when it's initialized instead of a storage manager and fixed a bug related to new expiry code