make heartbeat interval configurable, fix #10