fixed for logging..