removed try/except in getcurve