delete unnecessary file
add support for buffer size (from options hash to flash)