@lambday do we make this a singleton or as usual a global? tried making it global(in last commit) but seems to give a segfault when constructor is called(ran gdb source seems to be sg_io variable will take a look.) but this way it works fine.