assertion for bad routes