refactoring of drone configuration process