added secure routing