fix bugs
Merge branch 'master' of https://github.com/scriptkid85/DS640
kind of fix socket bug