general work on tycheckclause, added more cases to several functions