lighting nearly completely fixed + memory use fixed: hurray