added an auto update closes #13
improved auto updating