added preview endpoint