proper way to grab stage variable