improved container logic so it would use shell_out