restrucured app