fix handle delete and put methods properly