implement autoupdate function to aw (see #32)