added convenience method put_all