small code change to host resource and add method