switched error details to bitfield