tweak build script; added error to controllers