added debug code to homepage