added allowedHosts -array