factor out the default options
factor out the default options