fix determining if orm is available