add error logging and change cookbook version.