separe get and set as different functions, adding spread key read and write