bugs in logging and link grabbing