based on https://github.com/Todd-Davies/ProgressWheel/