functions und sessions class added