bsongen: prefix local vars with _