init with the resource file