add globals into apinav