map now stores in txt file, added resources dir