rewrite directive part 1 ..