rewrite ionice examples