build for distribution