partial: http://outils.prodinternet.com/mantis/view.php?id=4383