modify throw exception that was substituted path