logger. bug fixes