simplified, completed unlocknload; deleted unnecess helper fns.