working state-specific export script