definitions and maps now proparly read and writen back to files