fix double slash in path
save ids on unload