turned 'optional' arguments into a correct options hash setup.