add create_resource and demo