changed 'name' to hostname' (API)