update data generically. Closes #67.