added map saving to file