remove redundant checks in command read