placed in server side hooks for heartbeat