fixes to build script, unfinished