add fc_alloc and fc_free