rewrite to abortable relmap