refact parser, render, directory to make code style better