improve promises
basic session views
cleanup
more cleanups