also ignore fmap replacement
also use output directory when writing out the logic graph
added a separate option to output the logic graph as xml