add Resource loader and AttributeLoader