fix external algorithm support & tests