BRS invariance in unusual settings