use writeVChannel
fix silly compile errors