template system refactored and move to /src/scene