moved app to type4 folder,added more flags