adding memory checking script