added 'preview' flag - console logging only occurs in preview now