export a run function from index.js