refactor to make output package type configurable