as presented to peter - still some bugs in QSlim