add fault tolerance to bodystructure parsing