moved to if-data: createResource, createSession, createSessionStaff