handle redis for caching in production, fix specs