added update capability to put, now a dict