converts storage to rails