fixes #113

added a custom directive for url-parsing