fixed problems with put

now with working put support