export/compile uses globals