rename flatten_module to macro_escape