simplfy output file derivation