config the resource file