change permission of /home. improce debug logs. add lock operation to fix bug
make it stable