 maybe have a better interface than global vars
