make builder a module as well as a standalone script