add try-catch
made session private