fix problems in session control and helper