take urls into account besides local paths