updated to new QLib