add EntityService and toggleAutoTimestamp method