finish read_cmd (hope so...)