add update helper, fixes #1