added debugging to setup