implemented lockout mechanism