simpler export snippet