promote some inner case classes