added debug code to installer