changes to remove chat services and fix require issue