added loading counter