fix snippet options and preview routing errors