modify heartbeat for esay use, add some docker's code