dump to safe_dump