safety checks on shaders & unified format