diff --git a/playground/andreas/testLIGO/testLIGO.py b/playground/andreas/testLIGO/testLIGO.py
index 71430e72c0baddae725dc92acc9dd691e3077a22..b8e5d29da6a8e401073573c5524a9554b5746cc5 100644
--- a/playground/andreas/testLIGO/testLIGO.py
+++ b/playground/andreas/testLIGO/testLIGO.py
@@ -22,15 +22,45 @@ def main():
     """
     plt.close('all')
 
-    global kat
-    #kat = finesse.kat(tempdir=".",tempname="test1")
-    #kat.loadKatFile('aLIGO-PI-clean-LOCK.kat')
-    #kat.maxtem='off'
+    global kat, out, LIGO1
 
     LIGO1 = ifo.aLIGO(debug=True)
     kat = LIGO1.kat
+    kat.removeBlock('locks')
+    kat.removeBlock('errsigs')
+    kat.removeBlock('Powers')
     kat.verbose = False
-    
+    kat.maxtem = 4# "off"
+    kat_pretune = kat.deepcopy()
+    ifo.remove_components(kat_pretune, ["mod1", "lmod2", "mod2", "lmod3"], component_in="lmod1");
+    LIGO1.pretune(kat_pretune, pretune_precision=1.0e-4)
+    LIGO1.power_ratios(kat_pretune)
+    LIGO1.plot_pretuning_powers(kat_pretune, xlimits=[-.1, .1])
+    pretuning = LIGO1.get_tunings(kat_pretune)
+
+    # tuning length of PRC and SRC versus mod frequencies
+
+    # adjusting phases for err signs
+
+    # Finding light power in AS port (mostly due to RF sidebands now
+    LIGO1.set_tunings(kat, pretuning)
+    kat2 = kat.deepcopy()
+    sigStr, name = LIGO1.AS_DC.signal(kat2)
+    kat2.parseCommands(sigStr)
+    kat2.noxaxis=True
+    out = kat2.run()
+    print(out.y)
+    waste_light = round(float(out[name]),1)
+    print("-- assuming waste light in AS port of {:2} W".format(waste_light))
+
+    kat_lock = kat.deepcopy()
+    DC_offset = LIGO1.find_DC_offset(kat_lock, 2*waste_light)
+    pretuning["ETMY"] += DC_offset
+    pretuning["ETMX"] -= DC_offset
+    LIGO1.set_tunings(kat_lock, pretuning)
+    LIGO1.plot_error_signals(kat_lock, xlimits=[-1e-2, 1e-2])
+
+def testing(kat):
     alpha, L = ifo.BS_optical_path(0.06)
     print("Test 1: bs optical path: {}, {}".format(alpha,L))