check that paths are dirs
fix compiler warning about unused argc
todo comments