updated logger to avoid duplicate def's