fixed loading bar, hopefully fixed updaing in php instead of batch file.