adjust directory and add save load