added some debug msgbox's