fixed minor issues with script and built.