some optimisation and dev text output