some tk fixes