changed buildScript to contain API stuff as well