add logic for link or copy of pkg files