moved the files out of the height directory and added a function to detect internet connection