remove the support of global function since it is confusing if a library is imported by another