move chat to nio package