pass scope to all renderer functions