sh exit fix
optional extensions