changing to juce, almost completely new because of code restructuring