cleans up build process