add host resources, close #20