get all Math functions into global scope
flat 3d support (coloring still goofed)