adding resource loader