updates to build.pl