lots of fixes. lambda's work now.