set up as an application factory

more app factory config