better check for an unknown global function