added support for opening files like processes