added sanitisation of routes