used irtools' firm_clear_link instead of local one