add extern to public api