exception handling
api class adding