link updated to handle multiple interface registratio. TO BE TESTED