got rid of extern call