simplify get_by_url method