trend forecasting and minor changes to back-end