add clustering code, open cors requests