first real stab at supporting host as a function option