fixed script and export