host: remove private code