                     machine_name = machine_id
 
                 for key of blueprint[machine_id]
+                    console.log machine_id
+                    console.log key, blueprint[machine_id][key]
                     value = blueprint[machine_id][key]
                     if value is "role_primary" or value is "role_secondary"
                         @num_replicas++

        issues_redundancy = []
        @num_replicas = 0


        directory_by_namespaces = DataUtils.get_directory_activities_by_namespaces()
        for namespace in namespaces.models
            namespace_id = namespace.get('id')
            blueprint = namespace.get('blueprint').peers_roles

                for activity_id, activity of activity_map
                    if !(namespace_id of activities)
                        activities[namespace_id] = {}
                    if activities[namespace_id][machine.get('id')]?
                        activities[namespace_id][machine.get('id')].push(activity)
                    else
                        activities[namespace_id][machine.get('id')] = [activity]

        return activities

