more updates and change REST API host to localhost