Referance and main, lost majority of code including config handler and proxy