automatically generate base64 for samples
maybe simpler
Actually use the comiled output