add type for objectType and hostType