now supports subdirectories for preivew and live sites