change basename to fc_basename to avoid conflict