allow local and ipyton, add detectA