generate apemanfile helper