added delete and put functionality