#1: Added new function _path_to_id() and a lot of code to _compose_info().