improved way of getting head and remote