updated to check contents and show progress while posting