fixed format handling in routes command