added pstore code todata.rb