Feature/chatmanager

it's important for it to be here, otherwise you get memory leaks