works with internal urls