update to comments and logs for errors