see notes in mantis 3796