resolves #15 for PUT