generate fap class as public