migrating client code