filter route parameter for #91. some more improvements should follow this later