add some conditional routing to make development easier