implement isOpen command