refactored lackey into local and interplanetary, added ip logic, not tested yet