further improve compat of extractpot script with messages scripts