Add file handler
prepare to UNIX compile