locking in a working app