added agreement and fixed ability bugs