add more debug info, and add proxy route condition