parse config with custom options, updated example