don't use GetOptionsFromArray as it's not exported on perl 5.8.8