better handling of template module files , almost able to register depth/rgb