added routing to handle missing types, not finished yet