addding client init code