patched problem with overwriting file values with empty flag defaults