clean up public folder & fix template paths