gloablize variables
added heartbeat skeleton