better commenting + fix type for maxBodyMutationAttempts