fixed some bugs in the update library and took out hard coded log path