anchor.diff:    ?LOG(info, "App ~p", [App]),
     
     TemplateCommand = App#app.start_command,  
  -  RealCmd = template_command_string(TemplateCommand, [
  -                                                        {"[[PORT]]", misc_utils:to_list(Port)},
  -                                                        {"[[GROUP]]", App#app.group},
  -                                                        {"[[USER]]", App#app.user}
  +  RealCmd = string_utils:template_command_string(TemplateCommand, [
  +                                                        {"[[PORT]]", misc_utils:to_list(Port)}
                                                         ]),
     % START INSTANCE
     % port_handler:start("thin -R beehive.ru --port 5000 start", "/Users/auser/Development/erlang/mine/router/test/fixtures/apps").
  -  ?LOG(info, "Starting on port ~p as ~p:~p with ~p", [Port, App#app.group, App#app.user, RealCmd]),
  +  ?LOG(info, "Starting on port ~p as with ~p", [Port, RealCmd]),
     process_flag(trap_exit, true),
  -  Pid = port_handler:start(RealCmd, App#app.path, self()),
  +  Pid = port_handler:start(RealCmd, App#app.path, self(), [nouse_stdio, {packet, 4}]),
     Host = host:myip(),
     Id = {App#app.name, Host, Port},
     
  
positive.code: 
  % kill the instance of the application  
  internal_stop_instance(Backend, App, From) when is_record(App, app) ->
    RealCmd = template_command_string(App#app.stop_command, [
                                                          {"[[PORT]]", erlang:integer_to_list(Backend#bee.port)},
                                                          {"[[GROUP]]", App#app.group},
                                                          {"[[USER]]", App#app.user}
                                                        ]),
  
    Backend#bee.pid ! {stop, RealCmd},
  
negative.code:   end,
    From ! {bee_terminated, Backend}.
  
  % Handle pid exiting
  handle_pid_exit(Pid, _Code, #state{current_bees = CurrBackends, available_ports = AvailablePorts} = State) ->
    case find_pid_in_pid_table(Pid) of
      false -> 
        State;
  