memory leaks fixed
starting to add shader support - broken compile