UPDATE: moved from logging to an instance of logger