swaped shared_ptr for refs for shaders