resolving issues with session creation