added logic to all wall routes