better logging
check for link existence