added routing to classes option. calls constructor if present now