added resource loader