split application into parts