use files instead of reading html over socket