readding handling for int based PUTs for #52
imporved error messages for #52