removed extra spaces
added support for passing entered command
entered called with from/to