updated server to use TS