fix build due to resource interface introduced