rules export script