check update function on startup