conditional local import