fs parser optimization