Add debug setting and call schema discoonect on endpoints