fixed hardcoded siteid reference to read the scope instead as it should have