added ability to pass in a base path