For consistency, add host should take a key named 'name' in addition to 'hostname'.