updates from https://github.com/todbot/blink1/tree/master/commandline