implemented first version of -f e; seems to work, but is not extensively tested.