add MODE for BSD and missing flags