fixed profiler initial reset interval, put profiler section around buffer malloc
framebuffer stuff