fixing app scoping