PMG - adapt client script