beginnings of fog code