added motives. updated index and resolution mechanic.