debug mode changes

debug changes to improve web conf. issues