allow next to map to return or continue depending on context