use env varialbe hostname in filepath