added hack for moving on slopes