edited logging for more meaningful outputs