made links not hardcoded on the hostname and other shiz