removed dead methods and added partial support for mapping file