allowed onlylogLR=TRUE to return all of g