removed some garbage and setting up universal get_link method for objects