adds automatic update mechanism