working template project with session