Feature/chatmanager

what's 40? make it a constant