update error code from -M to -f