fix logging, I used logging and not logger to print messages