add lib/qserver.class.php