continue to clean up appium.js to handle new architecture