closes #313, also fixed progressbar