improve global variable table api