codes for the FiME training