better path handling in the app file