updated build process for publishing