make preview work without build