Tuesday lab version

lots of debugging; appears to be working; non-active frames being
assigned 0