got basic page flip running, need memory optimizations