added binpicking task heartbeat monitor; refactored code