minor bug fixes and improvements to how elm commands are queued or sent