add read/write methods for lists and hashes too