exception wrapper added for helper functions