finished with main code needs unit tests for two different invoke pointsi
updating to ignore target dirs