added export funciton to demo site