added application scope lock to init method