cli open/close implemented