add delegate support in ThunkServer