rewrite coreutils