fix on/off function bug and change qbserv