allow config object in addition to file path