changed link in mkdir to just -- instead of set to 2, added check in link print