fix lockmods initialization
implement mods and modlock