fix odd logging