add read write methods using pickle