WIP: add support for PUT