alternative replacement method on exports as well