temporary functionality until we have preview