add flash erase & program methods