clunky system rm call changed to stdio remove call