change POT to AnySize. add try catch with os opts.