Made first version of protocolmanager WIP