add importResource method