rename getPailByName to getPailByLink