moved rcon thread to separate file