added resource handler