updated api to account for more restrictive imports