allow passing file path instead of require()'d file