frame.c & namespacing of functions