added master lockout function, setvalue method