Revert "undid the previews changes"

This reverts commit f94f8a579c631df5db97b4e999dd973a42bcb87b.
Revert "replaced path.join with path.normalize and manual /"

This reverts commit 43d9f6560956cdd62567dc7aa2aca9386ac61ae0.