Statslabs

bunch of fixes for labs.