important fixes for params and routes