turn enum StemDir into enum class