generate app finished, works for 5 and 17