fixes #2342

Conflicts:
	library/ec2
fixes #2342

Conflicts:
	library/ec2
fixes #2342

Conflicts:
	library/ec2

fixes #2342
wait_for example added

Conflicts:
	library/ec2