spirit build host and create api
update rootPath