added basic rules for checking connections and weight