fixed mkfile host, add exept catch