improve fen parsing