nice errors for undefined functions