logging everything. for some reason connection is randomly being called twice which is messing everything up.