Rework of protocol between interpreter and shells