moved messaging to core.
command cleanup.