implemented interface methods
added constant query history buffer size