implement flashing in makefile