some small fixes for creating data dumps