tweaks to use firmata