Moved flags init into gonfig
fixed import path