refactoring for native plugin, selendroid v0.4.2