added fileAdapter in AMD format