added loadbalancer support, many bug fixes, especially in the stack subcommand