adding export and other stuff.