adding check when hitting routes on the server