adding support for local files