added url_for to local handler, too