init component resource