* ended up not using that
* removed extra spaces
* moved cache file checking code into functions
  now I can use the same functions to check the ip and status cache files