added support for automatic update