close to working proto