inline class parsing
switch handling