refactored app logic directory structure to be at top level