refactored build automation and include bundle dist program