clean up build script. IO fix.