add some extra debugging to startup