fixed logging once again