rewrite gimfile