protyping PUT support
reorganize demo code
reorganize demo code