updated lock to use gdm lock