flatten app considerably