update to the makefile and add support for OTA