add wrapper method for easier exception handling