consider uncommitted events when finding next and previous processes