+improve logging;+convert file only if url is defined