added verification before linking