library to work with roles, contains calculation of times for the session, validation of required roles