add hostname check to switch aapt pref