made some gluefuncs