add prelim client code