need to define GEMPDF, otherwise nex2img runs twice!