renamed check_mem.pl to check_mem