added functionality for adding sites
merged changes