changed read/write map
all methods implemented, just one stupid compile error left