put dependency building into a separate script