add masterapp and masterurl opts