add a few preflight checks