egg and search script