refact HVProcessor
fix resource import error