refactor NativeProcessor