front end with a lot of the walking function done