adds new packages supp for 0.9, refacor app() a bit.