moved creation of qgis layers in the worker thread