standardize directories, fix regex and migration paths