added --use_libwqsmart option