move variable to fix potential scope issue
set options via data params