avoid some checks and connections if not required by given command