return ids instead of json