catch ArgumentError and raise as RuntimeError