#14 fixed socket issues
heartbeat #14