make sure link is a real link object before exec class method