check for existence of containers first