move sopresto wrapper away from exception based error handling