define a callable main_opts function so this utility can be extended