bsongen: support for custom tags