some modifications for mesquite-compatible output