add hostname support + finish license automata