handle domain name for non static apps