move init logic into main file. each render file is responsible for rendering