added read support to layered protocol