move urlTools into separate library