making parameters hosts and timestamp optional