log-det framework added (partially)