check version, open/read/write com as function