added backend rule and test client scripts