fixed minor errors regarding routing