fixed routes and handling of single param