added clustered functionality