changes to drone.js to support methods in standalone mode.