use export because its more reliable