changed default init behavior for the session object, added some config stuffs