make export a seperate script