use c_scan() instead, scan_entity is the old syntax. More infos about it in the manual.