simple first version with preview endpoint and configuration