improved build script; add logging