optimised shader import and fixed a small bug that wasn't allowing

shader flages to set.