fixes for NT and dialog