added conditional build steps, error messages are now excluded from the min build.