generate apnx is optional