#101 add checkName and open' functions