working on put api and tests