enable read function for only global vars