change options name from middleware to native_middleware
options will not be undefined in init.js