some updates towards log-det sampling