the second approach added temprory in App main