updated external
adapted to new mlk