adding zk in embedded mode