added diagnostic messages (dumping S3 vars)