basic integration of haystack