flesh out put
return digest after write