switch storage to stringstream