process as filehandler