improved Handlers for commandline and incomming connections and expanded functionality