[PD] communicating with the shell