generalize interface return (was only error return); immediate return in switch cases