minor improvements and rewrote reconnect module
rewrote much of command handling. still needs work