finalize exe and structure