updated local settings to free up resources preventing EOF error

added more tree functionality - checks for non existent remote files