Kerry, Pakistan agree on steps to improve ties