first attempt at autoupdating mechanism