adapted update script to current cache/lock setup