refactred from bot to connection
added key value parsing of different command arguments