adding screen recording debug feature.