repaired typeToPath since it mostly returned 'undefined'