define constants & session things