use mydump() recursively instead of custom hardcoded recursiveness