add resource in model