add stringify & optimize controller and require