fixed filename bug
working on hostname matching
added hostname support