work towards lwjgl and optimizations