add support for resolving id from filepath