restructured templates hierarchically
added sessions, can create session but cannot use it yet