device fix for FreeBSD on TV, some changes