moving conversation object to new file and decoupling from globals