fix bug of storage.rb and thrifthandler.rb, and add output