can return single document
update autoreaload and headless: