added ecr_main_ram_scan