added preview support