wrap in switch
fix scala, durr