script for download and build