additional changes to resolve allowed_hosts error