user QUrl and add mime support in downloads