make example work in compiled mode