add second jump and fix some bugs