change location of write scope, expired check