revert back to former implementation based on functions in env
example that actually uses var vars