more OBSConnection

This commit refactors OBSConnection.