add a timeout
timeout should be in seconds; add a shebang line
use kite.ping instead of kite.heartbeat