resource checking script