only writer trace when failed but not a full stack trace recorded, better error handling needed here i suspect
only writer trace when failed but not a full stack trace recorded, better error handling needed here i suspect