finalize build process