check explicitly for invalid function names (fix #43)