try making a gmic instance per thread