made script for export statements and running pin