modified to work with the newest app generator