split the jumping code into a new module