Correct require order in app startup