only log errors
fixed logging
logging fixed part 2