init sessions function is complete