using bash function for linking in setup