added post put and delete for trees