use exports to tighten up code
shorter test script