update motion detector and more