beautified and fixed sessions a bit