isn't it better if things like this are somewhere away from the command, e.g. in the `Connection` ?