do custom logging setup only if we run as instance script