- fixed logging to console