work on command and connection structure