added sites object, and minor fixes