trying to sort threads and observer pattern for GUI to bashthread to a sharedobject currently thread difficulty