running only if hostname is api