prevent exceptions thrown for control flow