Looks like we mostly work

Only thing left is to pass hostname to temp file creation