add helper macros to facilitate the fp_entity creation.