RainTPL doesnt belong here
added session, moved stuff