add CIF interface, better error handling for rest calls