add conditional fields to make file