fixes #5, and implements autoUpdate on all element as config param