made running of analysis easier (using dir pattern as arg)
added reified rewrite method