added support for file without extension