debug setup script