better error conditions; only print index commands if mirror schema specified