put api-options into def