bug with tkwait probably fixed