implemented proper function name lookup in fn_execute()