add pi changes to sample server