combined forward and backward coroutines to one jump routine