Fix explanation result on internal exception
Cleanup
Initial automatic gateway routing implementation