added messy command input support