adding mapi fns