fixed exporting (though obs_id will be wrong for some observations)