fixed shell and open/close