add proper destructuring for routes