adding mtd and a few other thing