moved session function to its own file
updated default settings