fixed cb in generateSite fn