hacked out get cutout program, needs testing