fixed tg server

(still have to add argv’s)