added options locking method