added checking for updates