added pick_block and flash_block functions - both currently called in console