added useSession to data layer