improve FTA generation