try to dereference only when it makes sense
when contains a '\' or '/' it could be a url or a file name