add api method for retrieving progress
test for getProgress