changed running api to throw Exception out to simplify running api