added support for files (alpha)