fix json lint bug
redo gentoo and portage use flag config
initial refactor of fronted code, empty module class
refactor remaining fronted code