added code for url_safe_methods