bugfix: actually write ms out