modes: Vala support