route wire and debug api