fixed removal of old hard links
added library calling by string