modified to comply with isd_emxl