mx type added, output formatting changed
buffer fix
input in event loop