add PUT and DELETE handlers