split apps into separate files