improve flashing for production