work on template and core using defresource