fix flash and docs