added checkupdate function<incomplete>