restful response
better handling of basic types