add flash error support need to replace that really old @error