a more conventional way to check for proper config