ensure container exists (fixes #321)