stream refactor
app setup