added REST PUT functionality