add resource loader