add resource and animation