moved export_code() into proper alphabetical position