remove dependence on xl_lib