get options and config