add import declaration for rewrite