started using session logic