move msgwriter functionality into ewscal (for now)