use $extend in options