add some error massage;add heartbeat respond